//
//  AnnouncementDetailController.m
//  CaiPiao
//
//  Created by l wb on 2018/5/18.
//  Copyright © 2018年 apple. All rights reserved.
//

#import "AnnouncementDetailController.h"

@interface AnnouncementDetailController ()

@end

@implementation AnnouncementDetailController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
    self.navigationItem.title = @"详情";
    UIWebView *webView = [[UIWebView alloc]initWithFrame:self.view.frame];
    [self.view addSubview:webView];
    webView.scrollView.bounces = YES;
    webView.scrollView.showsVerticalScrollIndicator = NO;
    webView.translatesAutoresizingMaskIntoConstraints = NO;
    webView.scrollView.backgroundColor = [UIColor whiteColor];
    NSURL *htmlPath = [[NSBundle mainBundle]URLForResource:self.url withExtension:@"html" subdirectory:@"AnnouncementHtml"];
    NSString *htmlCode = [NSString stringWithContentsOfURL:htmlPath encoding:NSUTF8StringEncoding error:nil];
    if (htmlCode) {
        [webView loadRequest:[NSURLRequest requestWithURL:htmlPath]];
        
    }
    
}



@end
